package com.ningxia.water.mapper;

import com.ningxia.water.entity.JobTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hz
 * @since 2021-05-19
 */
public interface JobTaskMapper extends BaseMapper<JobTask> {

    /**
     * 根据id修改任务状态
     * @param id
     * @param jobStatus
     * @return
     */
    @Update("update job_task set job_status = #{jobStatus} where id = #{id}")
    boolean changeJobStatus(Integer id, String jobStatus);
}
